import request from '@/utils/request'

const api_name = '/admin/user'

export default {
  /**
   * 分页条件插叙
   * @param page
   * @param limit
   * @param searchObj
   */
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  /**
   * 锁定解锁用户
   * @param id
   * @param status
   */
  lock(id, status) {
    return request({
      url: `${api_name}/lock/${id}/${status}`,
      method: 'get'
    })
  },
  /**
   * 查询用户详情
   * @param id
   */
  show(id){
    return request({
      url: `${api_name}/show/${id}`,
      method: 'get'
    })
  },
  /**
   * 认证审批
   * @param id
   * @param authStatus
   */
  approval(id, authStatus) {
    return request({
      url: `${api_name}/approval/${id}/${authStatus}`,
      method: 'get'
    })
  }


}
